import { defineStore } from 'pinia';
interface editPassState {
    sign: string;
    phone: string;
    tabState: number;
}
export const useForgetStore = defineStore({
    id: 'forget',
    state: (): editPassState => ({
        sign: '',
        phone: '',
        tabState: 0,
    }),
    getters: {
        getTabState(state: editPassState) {
            return state.tabState
        },
        getSign(state: editPassState) {
            return state.sign
        },
        getPhone(state: editPassState) {
            return state.phone
        }
    },
    actions: {
        async RESET_STATE() {
            this.$reset();
        },
        setTabState(tabState: number) {
            this.tabState = tabState
        },
        setSign(sign: string) {
            this.sign = sign
        },
        setPhone(phone: string) {
            this.phone = phone
        },
    },
});